package mytrain.kirayous;

import lombok.SneakyThrows;

public class MyThread implements Runnable {


    private final Service myService=new Service();
    @SneakyThrows
    @Override
    public void run() {

        while (true)
        {
            myService.service();
            Thread.sleep(500);
        }



    }
}
